/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package views;

import java.util.List;
import web.Formatter;

/**
 *
 * @author Alejandro
 */
public class LinkElement extends ViewElement {
    private List<ViewElement> list;
    private int idr;
    
    public LinkElement(String header, String value, List<ViewElement> list, int idr) {
        super(header, value);
        this.list = list;
        this.idr = idr;
    }

    public List<ViewElement> getExtended() {
        return list;
    }

    public int getIDR() {
        return idr;
    }

    @Override
    public void accept(Formatter f) {
        f.formatLink(this);
    }
}
